package cn.bone.cloud.compute.server.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2017/11/2.
 */
@RestController
public class ComputeController {

    private Logger logger = LoggerFactory.getLogger(getClass());

    private DiscoveryClient client;

    @RequestMapping("/add")
    public Integer add(Integer a,Integer b){

        logger.info("server-01");
        Integer r = a + b;
        return r;
    }
}
